package project02mutiply;

public  abstract class Vehicle {
    private String brand;//品牌
    private String license;//车牌号
    private int dayMoney;//日租金
    boolean state;//车辆状态初始值为false
    private String type;//车的类型

    public Vehicle() {
    }

    public Vehicle(String brand, String license, int dayMoney) {
        this.brand = brand;
        this.license = license;
        this.dayMoney = dayMoney;
    }

    public Vehicle(String type) {
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public int getDayMoney() {
        return dayMoney;
    }

    public void setDayMoney(int dayMoney) {
        this.dayMoney = dayMoney;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public abstract void show();
    public abstract double calculateRent(int day);//计算租金
}
